﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using INNOVACALL.Framework.Common.MVCHelpers.Localization;
using InnovaApp.Layers.SecurityLayer.Models.AccountModels.MembershipValidation;
using InnovaApp.Layers.ResourcesLayer.Properties;
using System.Web.Mvc;

namespace InnovaApp.Layers.SecurityLayer.Models.MetaData
{
	public class ChangePassword_MetaData : _MetaData_Base
	{
		[Display(Name = "Id")]
		public System.Guid MembershipUserId { get; set; }

		[Required]
		[DataType(DataType.Password)]
		[DisplayNameLocalizedEntityAttribute(typeof(Resources), "ChangePassword", "Account", "OldPassword")]
		public string OldPassword { get; set; }

		[Required]
		[DataType(DataType.Password)]
		[ValidatePasswordLength(ErrorMessageResourceName = "ChangePassword_PasswordLength", ErrorMessageResourceType = typeof(Resources))]
		[DisplayNameLocalizedEntityAttribute(typeof(Resources), "ChangePassword", "Account", "NewPassword")]
		public string NewPassword { get; set; }
	}
}
